//
//  JHBannerModel.m
//  Job
//
//  Created by 欧松 on 2018/8/26.
//  Copyright © 2018年 桑赐相. All rights reserved.
//

#import "JHBannerModel.h"

@implementation JHBannerModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"ids":@"id"};
}

+(void)loadBanner:(NSString *)type callback:(void (^)(NSArray *, NSString *, NSError *))callback{
    
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    dict[@"type"] = type;
    [HTTPTools GET:getBannerListUrl parameters:nil callback:^(id result, NSString *msg, NSError *error) {
        if (!error) {
            if (!msg) {
                NSArray *array = [JHBannerModel mj_objectArrayWithKeyValuesArray:result];
                callback(array,nil,nil);
            }else{
                callback(nil,msg,nil);
            }
        }else{
            callback(nil,nil,error);
        }
    }];
}



@end
